{% load djangobmf_markup %}
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">{{ object.summary }}</h3>
  </div>
  <div class="panel-body">
    {% if object.due_date and not object.completed %}
      <div class="alert alert-info">
        Fällig: {{ object.due_date }} ({{ object.due_date|timeuntil }})
      </div>
    {% endif %}
    {{ object.description|bmfmarkup }}
  </div>
  <div class="panel-footer">
    {% if object.start_date %}
      {% if object.completed %}
        Beendet: {{ object.completed }} ({{ object.start_date|timesince:object.completed }})
      {% else %}
        Gestartet: {{ object.start_date }} ({{ object.start_date|timesince }})
      {% endif %}
    {% else %}
      Erstellt: {{ object.created }} von {{ object.created_by }}
    {% endif %}
  </div>
</div>
